package com.rika.service.impl;

import com.rika.dao.StockRecordDao;
import com.rika.pojo.StockRecord;
import com.rika.service.StockRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class StockRecordServiceImpl implements StockRecordService {
    @Resource
    private StockRecordDao stockRecordDao;
    @Override
    public void addStockRecord(StockRecord stockRecord) {
        stockRecordDao.addStockRecord(stockRecord);
    }

    @Override
    public List<StockRecord> selectInStockRecord(Map<String, Object> params) {
        return stockRecordDao.selectInStockRecord(params);
    }

    @Override
    public Integer countAllIn(String productCode) {
        return stockRecordDao.countAllIn(productCode);
    }

    @Override
    public List<StockRecord> selectOutStockRecord(Map<String, Object> params) {
        return stockRecordDao.selectOutStockRecord(params);
    }

    @Override
    public Integer countAllOut(String productCode) {
        return stockRecordDao.countAllOut(productCode);
    }

    @Override
    public List<StockRecord> selectInStore(Map<String, Object> params) {
        return stockRecordDao.selectInStore(params);
    }

    @Override
    public List<StockRecord> selectInStorePrice(Map<String, Object> params) {
        return stockRecordDao.selectInStorePrice(params);
    }

    @Override
    public List<StockRecord> selectOutStore(Map<String, Object> params) {
        return stockRecordDao.selectOutStore(params);
    }

    @Override
    public List<StockRecord> selectOutStorePrice(Map<String, Object> params) {
        return stockRecordDao.selectOutStorePrice(params);
    }
}
